//
//  knowStyleTwoTableViewCell.m
//  Toyohu
//
//  Created by Heige on 16/4/26.
//  Copyright © 2016年 celia. All rights reserved.
//

#import "knowStyleTwoTableViewCell.h"
#import "knowledgeStyleOne.h"
#import <UIImageView+WebCache.h>
@implementation knowStyleTwoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setModel:(knowledgeStyleOne *)model{
    _model =model;
    _title.text = model.title;
    _content.text = model.sketch;
    [_img sd_setImageWithURL:[NSURL URLWithString:model.imgUrl]];
    _like.text = [NSString stringWithFormat:@"%ld",model.favouriteNum];
    _comment.text = [NSString stringWithFormat:@"%ld",model.commentNum];
}


@end
